package com.epfresh.supplier.entity;

import java.util.List;

import multitype.suspension.ISuspensionInterface;

public class CategoryNames implements ISuspensionInterface{
    private List<CategoryNamesVarieties> varieties;
    private String name;
    private String id;
    private String categoryId;
    private String parentId;
    private String grandParentId;
    private String grandParentName;
    private String parentType;
    private String categoryType;
    private String parentName;
    //type == 1分类,2商品
    private String type;
    private String icon;

    private boolean moml;

    private boolean select;

    private boolean isTitle;
    private boolean isEmpty;

    public boolean isMoml() {
        return moml;
    }

    public void setMoml(boolean moml) {
        this.moml = moml;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getGrandParentId() {
        return grandParentId;
    }

    public void setGrandParentId(String grandParentId) {
        this.grandParentId = grandParentId;
    }

    public String getGrandParentName() {
        return grandParentName;
    }

    public void setGrandParentName(String grandParentName) {
        this.grandParentName = grandParentName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isEmpty() {
        return isEmpty;
    }

    public void setEmpty(boolean empty) {
        isEmpty = empty;
    }

    public boolean isTitle() {
        return isTitle;
    }

    public void setTitle(boolean title) {
        isTitle = title;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public List<CategoryNamesVarieties> getVarieties() {
        return varieties;
    }

    public void setVarieties(List<CategoryNamesVarieties> varieties) {
        this.varieties = varieties;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getParentType() {
        return parentType;
    }

    public void setParentType(String parentType) {
        this.parentType = parentType;
    }

    public boolean isCategoryType(){
        return "1".equals(type);
    }

    @Override
    public String toString() {
        return "CategoryNames{" +
                "varieties=" + varieties +
                ", name='" + name + '\'' +
                ", id=" + id +
                ", categoryId=" + categoryId +
                '}';
    }

    @Override
    public boolean isShowSuspension() {
        return parentName != null;
    }

    @Override
    public String getSuspensionTag() {
        return parentName;
    }
    @Override
    public String getSuspensionTagId() {
        return parentId;
    }

    @Override
    public boolean isSuspensionTitle() {
        return false;
    }

}
